package com.j180.spring_jwt_demo.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel("返回的结果对象")
public class ResultBean<T> implements Serializable {

    @ApiModelProperty(dataType ="整数",name = "返回code",notes ="0:成功 1:失败",example ="0")
    private  Integer code;
    @ApiModelProperty(dataType ="字符串",name = "返回结果的描述")
    private String msg;
    @ApiModelProperty(dataType ="任意数据类型",name = "返回的数据")
    private T datas;
}
